package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

    //查询
    public<E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, Exception;
    //新增
    public<E> void add(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, Exception;
    //删除
    public<E> void delete(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, Exception;
    //修改
    public<E> void update(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, Exception;



}
